package com.dao;

import java.util.List;

import com.bean.Craft;
import com.bean.CraftShow;
import com.bean.ProcureProduct;
import com.bean.ProcureProductCraft;
import com.bean.ProductPart;

public interface ProcureProductDao {

	public abstract void save(ProcureProduct transientInstance);

	public abstract void delete(ProcureProduct persistentInstance);

	public abstract ProcureProduct findById(java.lang.Integer id);

	public abstract List findByExample(ProcureProduct instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByProductCode(Object productCode);

	public abstract List findBySuppelierCount(Object suppelierCount);

	public abstract List findByBlueprint(Object blueprint);

	public abstract List findByProcCount(Object procCount);

	public abstract List findByStatus(Object status);

	public abstract List findBySysUser(Object sysUser);

	public abstract List findAll();

	public abstract ProcureProduct merge(ProcureProduct detachedInstance);

	public abstract void attachDirty(ProcureProduct instance);

	public abstract void attachClean(ProcureProduct instance);
	
	public abstract List<ProcureProduct> getFindProcurep(String table,String pk,String sort,int PageNumber,int PageSize ,String options);

	public abstract List<ProductPart> getProcurePList(Integer partId);
	
	public abstract List<Craft> getCraftList(Integer craftId );
	
	/**
	 *新增采购需求
	 */
	public abstract void saveProductPart(ProcureProduct procureProduct , StringBuffer testDetailStrs);

	/**
	 * 删除采购需求
	 */
	public abstract void deleteProcureProduct(Integer procId);
	
	/**
	 * 发布采购需求
	 */
	public abstract void saveProcureInquiry(StringBuffer sql);
}